# -*- coding: utf-8 -*-
# @Time    : 2021/9/14 16:38
# @Author  : BrandonGT
# @FileName: 8_7_album.py

def make_album(name, title, songs=None):
    album = {'name': name, 'title': title}
    if songs:
        album['songs'] = songs
    return album


# make_album("BrandonGT", "Love Bebe")
# make_album("BrandonGT", "Love Bebe", 10)

album_active = True
while album_active:
    prompt_name = "Enter Album artist's name: "
    prompt_title = "Enter Album's title:"
    prompt_songs = "Enter songs count in that album: "

    print("\nEnter 'q' at any time to quit")
    name = input(prompt_name)
    if name == "q":
        break
    title = input(prompt_title)
    if name == "q":
        break
    count = input(prompt_songs)
    if name == "q":
        break

    albums = make_album(name, title, count)
    print(albums)
